﻿using System;
using UnityEngine;
using UnityEngine.UI;

namespace Assets.Scripts
{
    internal static class ImageExtension
    {
        // 获取遮罩长度
        public static float GetRectWidth(this Image image) => image.rectTransform.rect.width;
    }
}
